package com.pingan.haofang.searchcloud.metadata.dto;

/**
 * 索引字段DTO
 *
 * @author baojie371
 * @date 17/5/5
 * @since 1.0.0
 */
public class MetadataFieldDTO {

    /**
     * 字段名称
     */
    private String fieldName;

    /**
     * 字段类型ID
     */
    private Integer fieldTypeId;

    /**
     * 字段别名
     */
    private String fieldComment;

    /**
     * 是否唯一
     */
    private Boolean uniqueKey;

    /**
     * 是否是数据版本号字段
     */
    private Boolean versionKey;

    /**
     * 是否必填
     */
    private Boolean required;

    /**
     * 是否索引
     */
    private Boolean indexed;

    /**
     * 是否可存储
     */
    private Boolean stored;

    /**
     * 是否可向量
     */
    private Boolean termVectors;

    /**
     * 是否可多值
     */
    private Boolean multiValued;

    /**
     * 默认值
     */
    private String defaultValue;

    /**
     * 复制到字段，多个逗号分隔
     */
    private String copyToField;

    /**
     * 权重，扩大100倍
     */
    private Long boost;

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public Integer getFieldTypeId() {
        return fieldTypeId;
    }

    public void setFieldTypeId(Integer fieldTypeId) {
        this.fieldTypeId = fieldTypeId;
    }

    public String getFieldComment() {
        return fieldComment;
    }

    public void setFieldComment(String fieldComment) {
        this.fieldComment = fieldComment;
    }

    public Boolean getUniqueKey() {
        return uniqueKey;
    }

    public void setUniqueKey(Boolean uniqueKey) {
        this.uniqueKey = uniqueKey;
    }

    public Boolean getRequired() {
        return required;
    }

    public void setRequired(Boolean required) {
        this.required = required;
    }

    public Boolean getIndexed() {
        return indexed;
    }

    public void setIndexed(Boolean indexed) {
        this.indexed = indexed;
    }

    public Boolean getStored() {
        return stored;
    }

    public void setStored(Boolean stored) {
        this.stored = stored;
    }

    public Boolean getTermVectors() {
        return termVectors;
    }

    public void setTermVectors(Boolean termVectors) {
        this.termVectors = termVectors;
    }

    public Boolean getVersionKey() {
        return versionKey;
    }

    public void setVersionKey(Boolean versionKey) {
        this.versionKey = versionKey;
    }

    public Boolean getMultiValued() {
        return multiValued;
    }

    public void setMultiValued(Boolean multiValued) {
        this.multiValued = multiValued;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String getCopyToField() {
        return copyToField;
    }

    public void setCopyToField(String copyToField) {
        this.copyToField = copyToField;
    }

    public Long getBoost() {
        return boost;
    }

    public void setBoost(Long boost) {
        this.boost = boost;
    }
}
